package cn.com.cc.log;

import java.io.File;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import cn.com.cc.constant.Constants;

public class LoggerInitServlet extends HttpServlet{

	@Override
	public void init() throws ServletException {
		String path = getServletContext().getRealPath(File.separator);
		Constants.Global_Path = path;
		InitLog log = new InitLog();
		log.init(getInitParameter("log-init-file"));
	}

}
